package com.ljw.community.service;

import com.ljw.community.entity.FollowedTopic;
import com.ljw.community.entity.Tag;
import com.ljw.community.entity.Topic;
import com.ljw.community.entity.TopicResp;

import java.util.List;

public interface TopicService {
    List<TopicResp> loadTopics(String tag);

    List<Tag> loadTags();

    List<TopicResp> loadMyTopics(String date, String loginName);

    int deleteTopic(String id);

    int updateTopic(Topic topic);

    List<TopicResp> loadFollowedTopics(String tag, String loginName);

    int unfollowTopic(String id);

    int addTopic(Topic topic, String loginName);

    Topic getTopicById(String id);

    int modifyTopic(Topic topic, String loginName);

    TopicResp getTopicRespById(String id);

    int followTopic(String topicId,String loginName);

    List<TopicResp> loadTopicList(int curr, int limit, String query);
}
